import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "./assets/css/reset.css";

Vue.config.productionTip = false;

//引入elementUI
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";

Vue.use(ElementUI);

//引入axios
import axios from "axios";

Vue.prototype.axios = axios;
//引入echarts
import * as echarts from "echarts";

Vue.prototype.$echarts = echarts;

//引入mint-ui
import MintUI from 'mint-ui';
import 'mint-ui/lib/style.css';

Vue.use(MintUI);

//引入vant
import Vant from 'vant';
import 'vant/lib/index.css';
import {Lazyload} from 'vant';

Vue.use(Lazyload);
Vue.use(Vant);

//引入http.js
import http from "./components/js/http"

Vue.prototype.http = http

// MuseUI
import MuseUI from 'muse-ui';
import 'muse-ui/dist/muse-ui.css';

Vue.use(MuseUI);

//引入momentUI
import Moment from "moment";

Vue.prototype.moment = Moment;

import Video from 'video.js';
import 'video.js/dist/video-js.css'
Vue.prototype.$video = Video


router.beforeEach((to, from, next) => {
    if (to.meta.title) {
        document.title = to.meta.title;
    }
    next()
})

new Vue({
    router,
    store,
    el: "#app",
    render: (h) => h(App),
}).$mount("#app");
